package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        String line="算得上是发送到发手机卡了";
        byte[] data=line.getBytes(StandardCharsets.UTF_8);

        FileOutputStream fileOutputStream=new FileOutputStream("fos.txt");
        fileOutputStream.write(data);
        fileOutputStream.write(",扩围你泼尼恩仇".getBytes(StandardCharsets.UTF_8));
    }
}
